<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<html>
  <head>
   <base href="<%=basePath%>">
    <title>工资管理系统教职工信息列表</title>
    <link rel="styleSheet" href="css/body.css" type="text/css" media="all" />
  </head>
  
  <body>
  	<table>
  		<caption>工资管理系统教职工信息列表</caption>
  		<tr>
  			<th>信息列表序号</th>
  			<th>工号/帐号</th>
  			<th>姓名</th>
  			<th>性别</th>
  			<th>生日</th>
  			<th>职位</th>
  			<th>详细信息</th>
  			<th><a href="StaffinfoActiontoAddStaffinfo">新 增 用 户</a></th>
  			<th>删 除 用 户</th>
  			<th>修 改 信 息</th>
  			<th>详细信息</th>
  		</tr>
  		<s:iterator value="staffList" id="staff" status="status">
  		<tr onmouseout="this.bgColor='white'" onmouseover="this.bgColor='#66CCFF'">
  				<td>${staff.stid}</td>
	  			<td>${staff.workid}</td>
	  			<td>${staff.username}</td>
	  			<td>${staff.sex}</td>
	          	<td width="50" class="wr4"><s:date format="yyyy-MM-dd" name="#staff.birthday"/></td>
	          	<td width="50" class="wr4">${staff.position}</td>
	          	<td><a href="StaffinfoActionshowPersonal?workid=${staff.workid}">详 细</a></td>
	          	<td width="50" class="wr4"><a href="StaffinfoActiontoAddStaffinfo">新 增</a></td>
	  			<td>删 除</td>
	  			<td>修 改</td>
	  			<td><a href="StaffinfoActionshowPersonal?workid=${staff.workid}">详细</a></td>
	  	</tr>
	  	</s:iterator>
  	</table>
  </body>
</html>